home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat7 / mdbm.z / mdbm
Encoding:
Text File  |  1998-10-20  |  6.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MMMMDDDDBBBBMMMM((((7777PPPP))))                                                              MMMMDDDDBBBBMMMM((((7777PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mdbm - local name service database
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      /var/ns/lib/libns_mdbm.so
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The mdbm client library fetches name service data out of an mmmmddddbbbbmmmm((((3333BBBB))))
  16.      format database file on the local host.  This library is meant to be used
  17.      only by the nnnnssssdddd((((1111MMMM)))) daemon to efficiently access local name service data.
  18.  
  19.      The library ////vvvvaaaarrrr////nnnnssss////lllliiiibbbb////lllliiiibbbbnnnnssss____mmmmddddbbbbmmmm....ssssoooo is opened by the nnnnssssdddd((((1111MMMM)))) daemon
  20.      when mmmmddddbbbbmmmm is listed as the protocol for some map in a nnnnsssssssswwwwiiiittttcccchhhh....ccccoooonnnnffff file.
  21.  
  22.      The library contains code to fetch data from a local mdbm file and
  23.      present it as lines from the configuration file from which it came.  The
  24.      nsd daemon then presents that data in the filesystem mounted under /ns.
  25.  
  26.      Extended attributes in the nnnnsssssssswwwwiiiittttcccchhhh....ccccoooonnnnffff file can be used to control the
  27.      behavior of the mdbm library.  Extended attributes are simply lists of
  28.      key/value pairs attached to each object in the nsd filesystem.  The
  29.      attributes supported in this library are:
  30.  
  31.      ddddoooommmmaaaaiiiinnnn
  32.           This is the domainname given as a parameter to the remote name
  33.           server.  This attribute is typically inherited from the daemon
  34.           depending on the nsswitch.conf file that is being read.  Given the
  35.           configuration file ////vvvvaaaarrrr////nnnnssss////ddddoooommmmaaaaiiiinnnnssss////DDDDOOOOMMMMAAAAIIIINNNNNNNNAAAAMMMMEEEE////nnnnsssssssswwwwiiiittttcccchhhh....ccccoooonnnnffff the
  36.           attribute "domain" is set to DOMAINNAME.  This attribute controls
  37.           which file is used to supply the requested information.  Given a
  38.           domain DOMAINNAME the library would open the file
  39.           ////vvvvaaaarrrr////nnnnssss////ddddoooommmmaaaaiiiinnnnssss////DDDDOOOOMMMMAAAAIIIINNNNNNNNAAAAMMMMEEEE////ttttaaaabbbblllleeee....mmmm.  If the domain attribute is
  40.           unset then the file ////eeeettttcccc////ttttaaaabbbblllleeee....mmmm would be used.  See the information
  41.           about the ttttaaaabbbblllleeee attribute below.  A client system can be a member of
  42.           multiple domains by including multiple instances of the mmmmddddbbbbmmmm keyword
  43.           in the nsswitch.conf file like:
  44.                hosts: mdbm(domain=engr) mdbm(domain=corp)
  45.  
  46.      ttttaaaabbbblllleeee
  47.           The ttttaaaabbbblllleeee attribute is typically inherited from the daemon based on
  48.           the line from which this entry occurs in the nsswitch.conf file.  In
  49.           the above example the ttttaaaabbbblllleeee attribute would be set to hhhhoooossssttttssss....bbbbyyyynnnnaaaammmmeeee
  50.           or hhhhoooossssttttssss....bbbbyyyyaaaaddddddddrrrr depending on the context of the request.  This
  51.           attribute is used as the file name containing the mdbm data, with a
  52.           ".m" appended.  For the hhhhoooossssttttssss....bbbbyyyynnnnaaaammmmeeee map in the default domain the
  53.           file ////eeeettttcccc////hhhhoooossssttttssss....bbbbyyyynnnnaaaammmmeeee....mmmm would be opened and searched.
  54.  
  55.      kkkkeeeeyyyy  The kkkkeeeeyyyy attribute is used to fetch the data from the mdbm(3B) file.
  56.           It is set by the nsd(1M) daemon, and is used without alteration.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMDDDDBBBBMMMM((((7777PPPP))))                                                              MMMMDDDDBBBBMMMM((((7777PPPP))))
  71.  
  72.  
  73.  
  74.      ffffiiiilllleeee The ffffiiiilllleeee attribute overrides the domain and table attributes to set
  75.           the name of the file to be opened.  If the file begins with a
  76.           leading '/' then that file is simply opened.  If not, then the
  77.           contents of this attribute are appended to the directory name --
  78.           either ////eeeettttcccc//// for the default domain, or ////vvvvaaaarrrr////nnnnssss////ddddoooommmmaaaaiiiinnnnssss////DDDDOOOOMMMMAAAAIIIINNNNNNNNAAAAMMMMEEEE////
  79.           when the domain attribute is set.
  80.  
  81.      nnnnuuuullllllll____eeeexxxxtttteeeennnndddd____kkkkeeeeyyyy
  82.           The nnnnuuuullllllll____eeeexxxxtttteeeennnndddd____kkkkeeeeyyyy attribute specifies that the null character
  83.           which terminates the key is really part of the key.  Some
  84.           applications (such as sendmail) have historically included the null
  85.           in the key so this attribute provides backward compatibility with
  86.           the old behavior.
  87.  
  88. FFFFIIIILLLLEEEESSSS
  89.      /var/yp/mdbm_parse /var/yp/mdbm_dump
  90.  
  91. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  92.      nsd(1M), nsswitch.conf(4)
  93.      IIIIRRRRIIIIXXXX AAAAddddmmmmiiiinnnn:::: NNNNeeeettttwwwwoooorrrrkkkkiiiinnnngggg aaaannnndddd MMMMaaaaiiiillll
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.